from datetime import timedelta
from airflow.providers.apache.hdfs.sensors.web_hdfs import WebHdfsSensor
from jms.time_sensor.time_after_08_00 import time_after_08_00

dim_dependent_dwd_wide_yl_rt_ssmx_bill_detail_hf_07 = WebHdfsSensor(
    pool='unlimited_pool',
    task_id="dim_dependent_dwd_wide_yl_rt_ssmx_bill_detail_hf_07",
    filepath='/dw/hive/jms_dim.db/external/dim_dependent/dt={{ execution_date | date_add(1) | cst_ds }}-07/dep=dwd_wide_yl_rt_ssmx_bill_detail_hf',
    execution_timeout=timedelta(hours=1),
    email=['rongguangfan@jtexpress.com','yl_bigdata@yl-scm.com'],
    retries=1,
)
dim_dependent_dwd_wide_yl_rt_ssmx_bill_detail_hf_07 << time_after_08_00
